<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/views1/DTD/views1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	<p:dialog id="dlgCreateAlternativa" widgetVar="promptCreateAlternativa" modal="true" width="500"
		closable="false" header="Adicionar Alternativa" minWidth="500" resizable="false">
		<h:form id="formCreateAlternativa">
			<div>
				<div class="prompt-div-label">Descrição: </div>
				<div class="prompt-div-campo">
					<p:inputTextarea rows="4" value="#{questaoBean.alternativaBaseInstance.texto}" styleClass="input-mg"
					required="true" requiredMessage="O campo [Descrição] é obrigatório."/>
				</div>
			</div>
 			<div style="text-align: right;">
           		<br/><p:separator /><br/>  
                <p:commandButton action="#{questaoBean.incluirAlternativa}" value="Salvar" update="formPrincipal:dataTableAlternativaShow, formPrincipal:mensagemMain, formCreateAlternativa, formPrincipal:painelSlave" onclick="promptCreateAlternativa.hide()" />
                <p:commandButton type="button" value="Desistir" onclick="promptCreateAlternativa.hide()"/>
            </div>
		</h:form>
	</p:dialog>
</f:view>